<template>
  <div class="container">
    <Product
      v-for="(v, k) of categoriser.categories"
      :key="k"
      :title="v.Name"
      :id="v.ID"
    />
  </div>
</template>

<script setup lang="ts">
import { useCategoriserStore } from "@/stores/category";
import Product from "@/components/product/Product.vue";

const categoriser = useCategoriserStore();
</script>

<style lang="less" scoped>
.container {
  margin: 0 1em;

  > * + * {
    margin-top: 1em;
  }
}
</style>
